# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=wikigen
pkgver=8.348aa99
pkgrel=5
groups=('blackarch' 'blackarch-automation' 'blackarch-misc')
pkgdesc='A script to generate wordlists out of wikipedia pages.'
arch=('any')
url='https://github.com/zombiesam/wikigen'
license=('WTFPL')
depends=('python2')
makedepends=('git')
source=("git+https://github.com/zombiesam/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 wwg.py "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
  install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

